#!/bin/sh
# X-compile rssg using mingw32
# Fedora 16: mingw32-qt, mingw32-binutils, mingw32-filesystem
cp ../nsis/qtdesktop-rssguard.nsi ../..
pushd ../../build && \
rm -rf * && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw32/Toolchain-mingw32.cmake -DWINDRES=/usr/bin/i686-pc-mingw32-windres && \
make && \
strip rssguard.exe && \
pushd .. && \
makensis qtdesktop-rssguard.nsi && \
rm -f qtdesktop-rssguard.nsi && \
popd && \
popd
